package part04_观察者模式.p01_传统方法;

/**
 * @ClassName: Client
 * @Author: AllenSun
 * @Date: 2019/12/6 19:20
 */
public class Client {
    public static void main(String[] args) {
        CurrentCondition currentCondition=new CurrentCondition();
        WeatherData weatherData = new WeatherData(currentCondition);
        weatherData.setData(30,150,40);
        System.out.println("====天气变化====");
        weatherData.setData(40,160,20);
    }
}
